﻿using Common.Property;
using Common.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DTO.DTO.Sys.Module
{
    [Serializable]
    public class ModuleDetailDTO
    {
        public ModuleDetailDTO()
        {
            Status = E_Status.Enabled.ToString();
        }
        public string Id { set; get; }
        public string Name { set; get; }
        public string PageUrl { set; get; }
        public string Type { set; get; }
        public string TypeName { get { return EnumHelper.ToEnumDescriptionString(Type, typeof(E_ModuleType)); } }
        public string ParentId { set; get; }
        public int Sort { set; get; }
        public string Status { set; get; }
        public string StatusName { get { return EnumHelper.ToEnumDescriptionString(Status, typeof(E_Status)); } }
    }
}
